package music

object TimeCommands {
  class Command 
  { override def toString:String = "COMMAND[" + this.getClass().getName() + "]"; }
  
  object StopCommand extends Command;
  
  class JumpCommand(val jumpToSecond:Double) extends Command 
  { override def toString:String = "COMMAND[JumpCommand(" + jumpToSecond + ")]" };
  
  class VolumeCommand(val vol:Double) extends Command
  { override def toString:String = "COMMAND[VolumeCommand(" + vol + ")]" };
  
  class FadeCommand(val endVol:Double, val durationSecs:Double) extends Command
  { override def toString:String = "COMMAND[FadeCommand(to " + endVol + " over " + durationSecs + " seconds)]" };
}